package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllMember(students map[string]interface{}) (error, []models.Member, int64) {
	err, studentData, total := dao.GetAllMember(students)
	return err, studentData, total
}

func DelMember(id string) error {
	err := dao.DelMember(id)
	return err
}

func UpdateMember(student models.Member) error {
	err := dao.UpdateMember(student)
	return err
}

func AddMember(student models.Member) error {
	err := dao.AddMember(student)
	return err
}
